package com.cy1;

public class Teacher {
    public void checkScore(int score)throws ScoreException{
        if (score<0||score>150){
//            throw new ScoreException();
            throw new ScoreException("你输入的分数有误，请检查后在输入！");
        }else {
            System.out.println("检查分数没有问题！");
        }
    }
}
